package com.wifi.channerClass.dao;

import com.wifi.channerClass.entity.ChannelClassEntity;

import java.sql.SQLException;
import java.util.List;

public interface ChannelClassDao {
    List<Object> select(Integer pageNum, Integer pageSize) throws SQLException;
    long selectCount(String pid) throws SQLException;
    List<Object> selectData(Integer pageNum, Integer pageSize, String pid) throws SQLException;
    List<Object> selectFather() throws SQLException;
    long  insert(String name,int pid) throws SQLException;


    long remove(int id, int s) throws SQLException;

    Object selectById(int id) throws SQLException;
    long edit(int id,String name,int pid) throws SQLException;

    int editByname(ChannelClassEntity channelClassEntity) throws SQLException;
}
